package com.songyang.yougnsql.core.data.page;

/**
 * @author yanceysong
 */
public interface Page {
    /**
     * 一页的读取8k的数据->2^3 * 2^10
     */
    int PAGE_SIZE = 1 << 13;

    void lock();

    void unlock();

    void release();

    void setDirty(boolean dirty);

    boolean isDirty();

    int getPageNumber();

    byte[] getData();
}
